package edu.pinkhub.shiro_test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pinkhub
 * @create 2021-12-17 21:20
 * @ClassName AppplicationController
 * @packageName edu.pinkhub.shiro_test.controller
 */
@Controller
public class AppplicationController {
    @RequestMapping({"/","/index"})
    public String index(Model model){
        model.addAttribute("msg","hello,shiro");
        return "index";
    }
}
